package com.gpnu7_412.yanzhi.util;

import java.util.Random;

/**
 * @author ZZH
 */
public class VerificationCodeUtil {
    private static final Random RANDOM = new Random();

    public static String getRandomCode(int length) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < length; i++) {
            sb.append(RANDOM.nextInt(10));
        }
        return sb.toString();
    }
}
